package com.hyg.module_health.view.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.util.Log;
import android.view.View;

import com.bumptech.glide.Glide;
import com.hyg.lib_base.mainUtils.StatusBarUtil;
import com.hyg.lib_common.Base.BaseActivity;
import com.hyg.lib_common.Net.CommonHttpUtil;
import com.hyg.module_health.R;
import com.hyg.module_health.databinding.ActivityBannerContentBinding;

import java.io.IOException;

import okhttp3.Call;
import okhttp3.Callback;
import okhttp3.Response;

public class BannerContentActivity extends BaseActivity {
    ActivityBannerContentBinding binding;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        binding = ActivityBannerContentBinding.inflate(getLayoutInflater());
        setContentView(binding.getRoot());
        init();
    }

    public void init() {
        StatusBarUtil.setStatusBar(1, this, getResources().getColor(R.color.white), 0, null, null, true);
        String img = getIntent().getStringExtra("img");
        String content = getIntent().getStringExtra("content");
        String title = getIntent().getStringExtra("title");

        Glide.with(this).load(img).into(binding.ivImage);
        binding.tvContent.setText(content);
        binding.tvName.setText(title);
        binding.lnTitleView.back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
        binding.lnTitleView.tvTitle.setText(title);
    }


}